<div class="model-header"  >
        <nz-content class="model-body">
            <div class="body-top">
                <form nz-form [formGroup]="validateForm" class="ant-advanced-search-form" [nzLayout]="vertical" (ngSubmit)="submitForm(validateForm)">
                    <div nz-col [nzSpan]="8">
                        <nz-form-item nz-row nzFlex>
                            <nz-form-label style="text-align: center;" [nzSpan]="6" [nzFor]="type">科室名称</nz-form-label>
                            <nz-tree-select
                                [nzNodes]="nodes"
                                nzShowSearch
                                formControlName="ksSel"
                                [nzDropdownStyle]="{ 'max-height': '300px' }"
                                nzPlaceHolder="请选择科室"
                                (ngModelChange)="onKSChange($event);child.filter(_data,$event[0])"
                            >
                            </nz-tree-select>
                        </nz-form-item>
                        
                    </div>
               
                    <div nz-col [nzSpan]="8" class="model-btn">
                        <!-- <button nz-button nzType="primary" [disabled]="!validateForm.valid" (click)="onSearch('search')">
                            查询
                        </button>
                        <button nz-button nzType="default" (click)="onSearch('reset')" [nzLoading]="isConfirmLoading">
                            重置
                        </button> -->
                    </div>
                </form>
                <div class="from-footer"></div>
            </div>
            <div class="account-table">
                <app-wallet-table #child  [data]="_data" [titleData]="_config" [page]="_page" (tabelEvent)="onListClick($event)"></app-wallet-table>
            </div>
    
    
            <nz-drawer
            [nzBodyStyle]="{ height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' }"
            [nzMaskClosable]="false"
            [nzWidth]="920"
            [nzVisible]="visible"
            nzTitle="处方详情"
            (nzOnClose)="close()"
            >
            <form nz-form>
                    <div nz-row nzGutter="8">
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                            <nz-form-label nz-col nzSpan="6">门诊号</nz-form-label>
                            <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                    {{dtlData?.mzh}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">就诊状态</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.jzzt}}
                                    </nz-form-control>
                                </nz-form-item>
                            </div>
                            <div nz-row nzGutter="8">
                                <div nz-col nzSpan="12">
                                    <nz-form-item nz-row>
                                        <nz-form-label nz-col nzSpan="6">开方医生</nz-form-label>
                                        <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                                {{dtlData?.ys}}
                                            </nz-form-control>
                                        </nz-form-item>
                                    </div>
                                    <div nz-col nzSpan="12">
                                        <nz-form-item nz-row>
                                            <nz-form-label nz-col nzSpan="6">开方日期</nz-form-label>
                                            <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                                {{dtlData?.kfsj}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                    </div>
                    <div nz-row nzGutter="8">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>病人信息</strong></nz-form-label>
                        </div>
                        <nz-divider></nz-divider>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">姓名</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                    {{dtlData?.hzxm}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">就诊卡号</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.jzkh}}
                                    </nz-form-control>
                                </nz-form-item>
                            </div>
                        </div>
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">性别</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.sex}}
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                        
                        <div nz-col nzSpan="12">
                            <nz-form-item nz-row>
                                <nz-form-label nz-col nzSpan="6">年龄</nz-form-label>
                                <nz-form-control nz-col nzSpan="16" class="my-font-t">
                                        {{dtlData?.nl}}岁
                                </nz-form-control>
                            </nz-form-item>
                        </div>
                    </div>
        
                    <div  nzGutter="16">
                        <nz-form-label><strong>诊断名称</strong></nz-form-label>
                        <nz-form-control class="my-font-t">
                                {{dtlData?.zdmc}}
                        </nz-form-control>
                    </div>
                    <div nz-row nzGutter="16">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>处方内容</strong></nz-form-label>
                            <nz-alert style="margin-bottom: 1rem;" *ngIf='isShow' nzType="error" nzMessage="α、β 肾上腺受体阻断剂应禁止与胞磷胆碱钠片联合用药，前者易对后者产生抑制作用。联合用药会导致二者血药浓度增加，引起心动过缓以及血压下降等中毒症状，严重时甚至会引发心功能不全以及呼吸抑制与窒息等"></nz-alert>
                            <nz-form-control class="my-font-table">
                                <!-- <app-wallet-table [data]="dtlData?.list || []" [titleData]="_configY" [page]="_page" (tabelEvent)="onListClick($event)"></app-wallet-table> -->
                                <nz-table #columnTable *ngIf="dtlData" [nzData]="dtlData?.list" [nzHideOnSinglePage]='true'  [nzScroll]="{ x: '1100px', y: '350px'  }">
                                        <thead>
                                          <tr class="my-table">
                                            <th nzWidth="100px" >名称</th>
                                            <th nzWidth="80px" >规格</th>
                                            <th nzWidth="100px">包装规格</th>
                                            <th nzWidth="80px">开方数量</th>
                                            <th nzRight="80px" nzWidth="100px">流转标志</th>
                                            <th nzWidth="80px" nzRight="0px">备注</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                          <tr *ngFor="let data of dtlData?.list" [ngStyle]="{'color': data.fxyy ? '#fa7a14' : '' }" >
                                            <td ><img style="width: 1.5rem" *ngIf="data.fxyy" src="../../../../assets/img/警示.svg" alt="">{{ data.mc }}</td>
                                            <td >{{ data.gg }}</td>
                                            <td>{{ data.bzgg }}</td>
                                            <td>{{ data.kfsl }}</td>
                                            <td nzRight="80px">{{ data.isJy }}</td>
                                            <td nzRight="0px">{{ data.bhyy }}
                                            </td>
                                          </tr>
                                        </tbody>
                                      </nz-table>
                            </nz-form-control>
                        </div>
                    </div>
                    <div nz-row nzGutter="16">
                        <div nz-col nzSpan="24">
                            <nz-form-label><strong>医嘱</strong></nz-form-label>
                            <nz-form-control  class="my-font-t">
                            </nz-form-control>
                        </div>
                    </div>
                </form>
    
            <div class="footer">
                <button type="button" (click)="close('驳回',template)" class="ant-btn" style="margin-right: 8px;"><span>驳回</span></button>
                <button type="button" (click)="close('通过')" class="ant-btn ant-btn-primary"><span>通过</span></button>
                <!-- <button type="button" (click)="signature()" class="ant-btn ant-btn-primary"><span>签名</span></button> -->
            </div>
    
        </nz-drawer>

        <ng-template #template let-notification>
            <div class="ant-notification-notice-content">
                <div>
                <div class="ant-notification-notice-message">驳回原因</div>
                <div class="ant-notification-notice-description">
                        <textarea rows="4" nz-input [(ngModel)]="inputValue"></textarea>
                </div>
                <span class="ant-notification-notice-btn">
                    <button nz-button nzType="primary" nzSize="large" (click)="notification.close()">
                    <span>取消</span>
                    </button>
                </span>
                <span class="ant-notification-notice-btn" style="float: left">
                    <button nz-button nzType="danger" nzSize="large" (click)="notification.close();closeBH()">
                    <span>确定</span>
                    </button>
                </span>
                </div>
            </div>
        </ng-template>
    </nz-content>
    
    </div>
    
    <nz-modal
    [nzWidth]=300
    
    [(nzVisible)]="isSpinning"
    [nzMask]=true
    [nzMaskClosable]=true
    [nzTitle]=null
    [nzFooter]=null
>
    
    <div nz-row >
            请使用浏览器上方签名工具签署
        <span nz-col nzSpan="14">正在签名中... </span>
        <nz-spin nzSimple nz-col nzSpan="10" *ngIf="!isOver" style="text-align: center"></nz-spin>
        <p *ngIf="isOver" style="text-align: center"> 完成</p>
    </div>
    <!-- <div nz-row style="margin-top: 2rem">
        <span nz-col nzSpan="14" >正在上传处方... </span>
        <nz-spin nzSimple nz-col nzSpan="10" *ngIf="!isOver" style="text-align: center"></nz-spin>
        <p *ngIf="isOver" style="text-align: center"> 完成</p>
    </div> -->
</nz-modal>
    